#!/bin/bash

set -e
echo "start init database: submerged_arc_furnace_monitor"
createdb -U "$POSTGRES_USER" -O "$POSTGRES_USER" submerged_arc_furnace_monitor
psql -U "$POSTGRES_USER" -d submerged_arc_furnace_monitor -f /docker-entrypoint-initdb.d/submerged_arc_furnace_monitor_sql
echo "end init database: submerged_arc_furnace_monitor"
